package com.ev.k3cloudBusiness.controller;

import com.ev.framework.annotation.EvApiByToken;
import com.ev.framework.utils.R;
import com.ev.k3cloudBusiness.service.K3BDOperatorService;
import com.ev.k3cloudBusiness.vo.K3BDOperatorWhereVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "/", tags = "金蝶K3Cloud业务员")
@RestController
public class K3BDOperatorController {
    @Autowired
    K3BDOperatorService k3BDOperatorService;
    @EvApiByToken(value = "/apis/K3BDOperator/OperatorView", method = RequestMethod.POST, apiTitle = "K3Cloud业务员列表")
    @ApiOperation("K3Cloud业务员列表")
    public R OperatorView(@RequestBody K3BDOperatorWhereVo k3BDOperatorWhereVo) {
        try {
            return  k3BDOperatorService.OperatorView(k3BDOperatorWhereVo);
        }
        catch (Exception ex) {
            return R.error(ex.getMessage());
        }
    }
}
